# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=gcli
pkgver=2.5.0
pkgrel=0
pkgdesc="Portable GitHub/GitLab/Gitea CLI tool"
url="https://herrhotzenplotz.de/gcli/"
arch="all"
license="BSD-2-Clause"
depends="bison flex"
makedepends="curl-dev libedit-dev lowdown-dev"
checkdepends="kyua atf-dev"
subpackages="$pkgname-doc"
source="https://herrhotzenplotz.de/gcli/releases/gcli-$pkgver/gcli-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr --release
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ce2ca0cca2d047b8dfba702daa8e11d4a84401f75621d2fc636d29a611f4dc0f0fd33fe3d18d8b1b3bddc56da85c0740db50c54e7be9e161edb757ec6725de1d  gcli-2.5.0.tar.gz
"
